﻿<%--
   Copyright 2012 University of Southampton

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
--%>

<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StatsFileViewer.aspx.cs" Inherits="uk.ac.soton.ses.layouts.StatsFileViewer" %>

<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>

<%@ Register TagPrefix="hdc" Namespace="uk.ac.soton.ses.WebControls" Assembly="HDCWebControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=be2a37f6f7c4bcce" %>

<html>

<head>
<title>Report</title>
<style type="text/css">
    
    /*#ReportTable{font-family:Sans-Serif;font-size:10pt;}*/
    body {font-family:Sans-Serif;font-size:10pt;}
    #ReportTable td,#ReportTable th {padding:0px 10px 0px 10px;text-align:left;}
    #ReportTable th {font-weight:bold;}
    #ReportTable td { border: 1px solid grey;}

    @media screen
    {
        .ReportDiv {float:left;}
        #ReportConfigurationDiv {width:30%;}
        #ReportOutputDiv {width:70%;}

        #ReportOptions{height:13%;}
        #FieldsSelectionDiv{height:82%;overflow:auto;}
        #FieldsSelectionDiv table{font-size:8pt;}
        #ReportTableDiv {height:95%;overflow:scroll;}

        .OptionLabel{float:left;width:12em;clear:left;}
        .OptionBox{float:left;width:3em;}
        .OptionDiv{background-color:#aaffaa;}
        .SelectionDiv{background-color:#bbddff;}
        .InfoDiv{background-color:#dddddd;}
    }
    
    @media print
    {
        .NonPrintDiv{display:none;}
        #ReportTable{font-family:Serif}
    }
</style>
</head>

<body>
<form ID="form" runat="server">
    <div id="ReportConfigurationDiv" class="ReportDiv NonPrintDiv">
        <div id="ReportOptions">
            <div class="InfoDiv" style="float:left;width:100%;">
                <b>File has <asp:Label ID="lbl_LineCount" runat="server" /> lines.</b>
            </div>
            <div class="OptionDiv" style="clear:left;float:left; width:100%; ">
                <label class="OptionLabel">Column delimiter ('\t'=tab):</label>
                <asp:TextBox ID="txt_Delimeter" runat="server" Text="\t" CssClass="OptionBox" /><br />
            </div>
            <div class="InfoDiv" style="clear:left;width:100%;text-align:center;">
                <asp:LinkButton ID="btn_OK1" runat="server" Text="Refresh" />
            </div>
        </div>
        <div id="FieldsSelectionDiv" class="SelectionDiv">
            <b>Dataset selection:</b>
            <asp:CheckBoxList ID="lst_Datasets" runat="server" AutoPostBack="true" ></asp:CheckBoxList>
            <b>Field selection:</b>
            <asp:CheckBoxList ID="lst_Fields" runat="server" AutoPostBack="true" ></asp:CheckBoxList>
        </div>
    </div>
    <div id="ReportOutputDiv" class="ReportDiv">
        <div id="ReportTableDiv">
            <asp:PlaceHolder ID="ReportResults" runat="server" />
        </div>
        <asp:Panel id="ReportButtons" class="NonPrintDiv" runat="server">
            <asp:LinkButton ID="btn_SaveReport" runat="server" Text="Save link to this view as parameter" />&nbsp;&nbsp;&nbsp;<asp:LinkButton ID="btn_SaveAsMetadata" runat="server" Text="Save this view as metadata" />
        </asp:Panel>
    </div>
</form>
</body>

</html>